from chinese_calendar import is_workday, is_holiday
import chinese_calendar as calendar
import datetime


def is_holidays(dts):
    """
      判断是否为工作日
    """
    Y = dts.year
    M = dts.month
    D = dts.day
    april_last = datetime.date(Y, M, D)
    return is_holiday(april_last)


def is_weekdays(dts):
    """
    :dt 日期
    判断是否为工作日
    """
    Y = dts.year
    M = dts.month
    D = dts.day
    dates = datetime.date(Y, month=M, day=D)
    return is_workday(dates)


def is_festival():
    pass


if __name__ == '__main__':
    date = datetime.datetime.now()
    print(is_holidays(date))
    print(is_weekdays(date))
    pass
